#ifndef QUADTREEINDEX_H
#define QUADTREEINDEX_H
#include"spatialindex.h"
#include<QMap>

class quadTreeIndex:public spatialIndex
{
public:
    quadTreeIndex();
    ~quadTreeIndex() override;
    bool initialize(double minX,double maxX,double minY,double maxY,geoMap*map) override;
    QVector<cellForIndex *> getPaintCells() override;
    void splitCell(cellForIndex*cell);
    int getSumWithinObjects(cellForIndex*cell);

private:
    QVector<cellForIndex*>cells;
};

#endif // QUADTREEINDEX_H
